﻿<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Results.aspx.cs" Inherits="Results" Title="ĐẠI CƯƠNG MOBILE - Kết quả tìm kiếm" %>

<%@ Register Src="../usercontrol/ProductsNew.ascx" TagName="ProductsNew" TagPrefix="uc1" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.3.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dxdv" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript" type="text/javascript" src="../js/wz_tooltip.js"></script>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="menu">
        <tr>
            <td class="hc1" valign="top">
                <asp:Image ID="Image9" runat="server" ImageUrl="~/images/support.png" />
                <asp:Label ID="Label5" runat="server" CssClass="text_header" Text="Kết quả tìm kiếm"></asp:Label>
                <asp:Label ID="lblWarning" runat="server" CssClass="Warning"></asp:Label><br />
                <br />
            </td>
        </tr>
        <tr>
            <td>
                    <dxdv:aspxdataview id="ASPxDVResults" runat="server" columncount="2" width="100%" EmptyDataText="..." CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" ImageFolder="~/App_Themes/Youthful/{0}/" ItemSpacing="1px" LoadingPanelImagePosition="Bottom" PagerPanelSpacing="0px" EnableViewState="False" OnItemCommand="ASPxDVResults_ItemCommand"><ItemTemplate>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">   
                        <tr>
                            <td valign="top">
                                <a href="#" onmouseover="Tip('<img src=\'<%# "../photos/"+ DataBinder.Eval(Container.DataItem,"MASANPHAM").ToString() + ".jpg" %> \'')" onmouseout="UnTip()">
                                            <asp:Image ID="imgProduct1" runat="server" Height="120px"
                                            ImageUrl='<%# "~/photos/"+ DataBinder.Eval(Container.DataItem,"MASANPHAM").ToString() + ".jpg" %>'
                                            Width="128px" AlternateText="ProductImage" />
                                </a>   
                            </td>
                            <td valign="top">
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">                
                                    <tr>
                                        <td colspan="2">
                                            <asp:HyperLink id="hplTenSanPham" runat="server" NavigateUrl='<%# "~/Apps/ProductDetail.aspx?pid=" + DataBinder.Eval(Container.DataItem,"MASANPHAM").ToString() %>' Font-Bold="True" CssClass="mslink" Text='<%# Eval("TENSANPHAM") %>'></asp:HyperLink>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="top">
                                            <asp:Label id="Label1" runat="server" Text="Giá:" CssClass="text_header"></asp:Label>
                                        </td>
                                        <td valign="top">
                                            <asp:Label id="lblGia" runat="server" Text='<%# Eval("GIABAN", "{0:0}") %>' CssClass="text_header"></asp:Label> 
                                            <strong>VNĐ</strong>
                                        </td>
                                    </tr>              
                                </table>              
                                
                           </td>
                      </tr>
                      <tr>
                        <td>
                            <asp:ImageButton id="imgbtnAddToCart" runat="server" ImageUrl="~/Images/addtocart.gif" CommandName="Select" CommandArgument='<%# Eval("MASANPHAM") %>'></asp:ImageButton>
                        </td>
                        <td>&nbsp;</td>
                      </tr>      
                        
                 </table>
                </ItemTemplate>
                        <LoadingPanelStyle ImageSpacing="3px">
                        </LoadingPanelStyle>
                        <PagerSettings>
                            <AllButton>
                                <Image Height="15px" Width="21px" />
                            </AllButton>
                            <FirstPageButton>
                                <Image Height="15px" Width="21px" />
                            </FirstPageButton>
                            <LastPageButton>
                                <Image Height="15px" Width="21px" />
                            </LastPageButton>
                            <NextPageButton>
                                <Image Height="15px" Width="16px" />
                            </NextPageButton>
                            <PrevPageButton>
                                <Image Height="15px" Width="16px" />
                            </PrevPageButton>
                        </PagerSettings>
                </dxdv:aspxdataview>
            </td>
        </tr>
        <tr>
            <td class="fc">
                <br />
                <br />
            </td>
        </tr>
    </table>
</asp:Content>

